<% if @page["success"] %>
  <div id="headerText" class="thankYouHeader successHeader successHeader<%= parent.capitalize %>">
    <%= t "#{@page["name"]}.success.header" %>
  </div>
  <div id="thankYouBlocks">
    <div class="thankYouBlock successBlock successBlock1 successBlock1<%= parent.capitalize %>"><%= raw(t "#{@page["name"]}.success.block1") %></div>
    <div class="thankYouBlock successBlock successBlock2 successBlock2<%= parent.capitalize %>"><%= raw(t "#{@page["name"]}.success.block2") %></div>
  </div>
<% else %>
  <div id="headerText" class="thankYouHeader failHeader failHeader<%= parent.capitalize %>">
    <%= t "#{@page["name"]}.fail.header" %>
  </div>
  <div id="thankYouBlocks">
    <div class="thankYouBlock failBlock failBlock1 failBlock1<%= parent.capitalize %>"><%= raw(t "#{@page["name"]}.fail.block1") %></div>
    <div class="thankYouBlock failBlock failBlock2 failBlock2<%= parent.capitalize %>"><%= raw(t "#{@page["name"]}.fail.block2") %></div>
  </div>
<% end %>
